package com.spring.test.instance.service;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author liyanhao
 * @Date 2023-03-02 20:36
 */
@Component
public class ZhangsanFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        ZhangsanFactoryBean userService = new ZhangsanFactoryBean();
        return userService;
    }

    @Override
    public Class<?> getObjectType() {
        return ZhangsanFactoryBean.class;
    }

}
